import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import 'normalize.css'  //重置样式表
import './assets/main.css'

import 'vant/es/toast/style'
import 'vant/es/dialog/style'
import 'vant/es/notify/style'
import 'vant/es/image-preview/style'
// import { Lazyload } from 'vant'; //图片懒加载

// 导入pinia持久化插件
import  {createPersistedState}  from 'pinia-persistedstate-plugin'


// import mitt from 'mitt'

const app = createApp(App)
const store = createPinia()
store.use(createPersistedState())
app.use(store)
app.use(router)

app.mount('#app')
